package com.hui.web;

import com.hui.service.WebService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yhq
 * @since 17-3-10.
 */

@SuppressWarnings("unused")
@RestController
@Log4j
public class WebController {

    @Autowired
    private WebService webService;

    @GetMapping("/")
    public String home() {
        int result = webService.getAdd(1, 4);
        log.info("result is success");
        return "hello world " + result;
    }
}
